package com.probox.systemApi;

import com.probox.common.core.constant.ServiceNameConstants;
import com.probox.systemApi.factory.RemoteCustomerFallbackFactory;
import com.probox.systemApi.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户服务
 *
 * @author usoft
 */
@FeignClient(contextId = "remotecustomerService", value = ServiceNameConstants.PLATFORM_MODULES, fallbackFactory = RemoteCustomerFallbackFactory.class)
public interface RemoteCustomerService
{

    /**
     * 新增客户token信息
     * @return 结果
     */
    @PostMapping(value = "/customer/customerAccountToken/info/addCustomerToken")
    public boolean addCustomerToken(@RequestBody LoginUser loginUser);
}
